﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using Model;

namespace Configuration.ModelConfiguration
{
    public class UserConfiguration : EntityConfiguration<User>
    {
        public UserConfiguration()
        {
            Property(c => c.Id).IsIdentity();
            Property(c => c.UserName).HasMaxLength(50).IsRequired();
            Property(c => c.Password).HasMaxLength(250).IsRequired();
            Property(c => c.FullName).HasMaxLength(100).IsRequired();
        }
    }
}
